﻿namespace UserStories.ViewModels.Projects
{
    using System.Collections.Generic;

    public class EditViewModel : EditFormModel
    {
        public IEnumerable<IdNamePair> Roles { get; set; }
        public IEnumerable<IdNamePair> Users { get; set; }
        public IEnumerable<IdNamePair> PokerCards { get; set; }
    }

    public class EditViewModelUser : EditFormModelUser
    {
        
    }

    public class EditViewModelUserStory : EditFormModelUserStory
    {
        
    }

    public class EditViewModelSprint : EditFormModelSprint
    {
        
    }

    public class EditFormModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public int Releases { get; set; }
        public int WeeksPerSprint { get; set; }
        public IEnumerable<EditFormModelUser> Team { get; set; }
        public IEnumerable<EditFormModelUserStory> UserStories { get; set; }
        public IEnumerable<EditFormModelSprint> Sprints { get; set; } 
    }

    public class EditFormModelUser
    {
        public int Id { get; set; }
        public int RoleId { get; set; }
    }

    public class EditFormModelUserStory
    {
        public int Id { get; set; }
        public string Description { get; set; }
        public int Priority { get; set; }
        public int CardId { get; set; }
    }

    public class EditFormModelSprint
    {
        public int Id { get; set; }
        public int ReleaseId { get; set; }
        public string EditLink { get; set; }
    }

    public class IdNamePair
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }
}